home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 October / enter-2005-10.iso / files / jedit42install.exe / {app} / macros / Files / Copy_Name_to_Clipboard.bsh < prev    next >
Encoding:
Text File  |  2004-08-29  |  629 b   |  29 lines

  1. /*
  2.  * Copy_Name_to_Clipboad.bsh - Copies the current buffer's filename
  3.  * to the clipboard.
  4.  *
  5.  * Copyright (C) 2002-2004 Ollie Rutherfurd <oliver@rutherfurd.net>
  6.  *
  7.  * $Id: Copy_Name_to_Clipboard.bsh,v 1.2 2004/04/09 17:10:15 spestov Exp $
  8.  */
  9.  
  10. void copyBufferNameToClipboard(Buffer buffer)
  11. {
  12.     Registers.setRegister('$',buffer.getName());
  13.     HistoryModel.getModel("clipboard").addItem(buffer.getName());
  14. }
  15.  
  16. copyBufferNameToClipboard(buffer);
  17.  
  18. /*
  19.  
  20. <listitem>
  21.     <para><filename>Copy_Name_to_Clipboad.bsh</filename></para>
  22.     <abstract><para>Copies the current buffer's filename
  23.         to the clipboard.
  24.     </para></abstract>
  25. </listitem>
  26.  
  27. */
  28.  
  29.